package routers

import (
	"github.com/gin-gonic/gin"
	"muziai-server/api"
	"muziai-server/middleware"
)

func FileRouter(r *gin.RouterGroup) {
	middleware := middleware.MiddlewareAuth{}
	app := api.ApiApp.FileApi
	r.POST("file", middleware.MiddlewareAdmin, app.FileUploadView)
}
